import request from '@/utils/request';

export async function paperList(params: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/list', {
    params,
  });
}

export async function paperDelete(data: {id:string}) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/delete', {
    method: 'POST',
    data,
  });
}

export async function addPaper(data: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/save', {
    method: 'POST',
    data,
  });
}

export async function copyPaper(data: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/copyList', {
    method: 'POST',
    data,
  });
}

export async function getActivityListByName(params: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/getActivityListByName', {
    params,
  });
}

export async function getListByAId(params: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/getListByAId', {
    params,
  });
}

export async function getByAId(params: any) {
  return request('/app-admin/teacher-admin/admin/v1/calculate/paper/getByAId', {
    params,
  });
}